/*package org.itboys.product.web;

import java.util.List;
import java.util.Map;

import javax.servlet.http.HttpServletRequest;
import javax.servlet.http.HttpServletResponse;

import org.itboys.commons.CommonConstants;
import org.itboys.commons.utils.ajax.AjaxUtils;
import org.itboys.framework.query.JsonPageUtils;
import org.itboys.framework.spring.controller.BaseController;
import org.itboys.mongodb.utils.page.Page;
import org.itboys.mongodb.utils.query.QueryParamUtils;
import org.itboys.product.service.ProductDepositService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Controller;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RequestParam;
*//**
 * 商品定金设置
 * @author weisky
 *
 *//*
@Controller
@RequestMapping("/product/deposit")
public class ProductDepositController extends BaseController{

	@Autowired
	private ProductDepositService productDepositService;
	
	@RequestMapping("/listPage")
	public void listPage(HttpServletRequest request,HttpServletResponse response){
		Page<ProductDeposit> page = productDepositService.page(request);
		JsonPageUtils.renderJsonPage(page.getTotal(), page.getData(), response);
	}
	
	*//**
	 * 获取所有的定金列表 不分页
	 * @param request
	 * @param response
	 *//*
	@RequestMapping("/list")
	public void list(HttpServletRequest request,HttpServletResponse response){
		Map<String, Object> param = QueryParamUtils.builderQueryMap(request);
		List<ProductDeposit> list = productDepositService.list(param);
		AjaxUtils.renderJson(response, list);
	}
	
	*//**
	 * 新增或修改
	 * @param productDeposit
	 * @param request
	 * @param response
	 *//*
	@RequestMapping("/save")
	public void save(ProductDeposit productDeposit,
			HttpServletRequest request,HttpServletResponse response){
		boolean result = productDepositService.insert(productDeposit);
		if(result){
			AjaxUtils.renderText(response, CommonConstants.SUCCESS);
		}else{
			AjaxUtils.renderText(response, CommonConstants.FAIL);
		}
	}
	
	@RequestMapping("/getById")
	public void getById(@RequestParam("id") Long id,
			HttpServletRequest request,HttpServletResponse response){
		AjaxUtils.renderJson(response, productDepositService.getById(id));
	}
	
	@RequestMapping("/delete")
	public void delete(@RequestParam("id") Long id,
			HttpServletRequest request,HttpServletResponse response){
		boolean result = productDepositService.dele(id);
		if(result){
			AjaxUtils.renderText(response, CommonConstants.SUCCESS);
		}else{
			AjaxUtils.renderText(response, CommonConstants.FAIL);
		}
	}
}
*/